const comment = (state = [], action) => {
    if (action.type == 'GET_COMMENT_DATA') {
        return action.data
    } else if (action.type == 'ADD_COMMENT_DATA') {
        return [...state, action.value]
    } else return state;
}

export default comment;